package com.company.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//@ServletComponentScan("com.company.demo.servlet")//添加servlet的注解，开始servlet扫描
//@EnableTransactionManagement    //开启事务
@ServletComponentScan("com.company.demo.filters")//servlet的过滤器扫描
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
